package StudyCode.summary.Basic.stringbuffer;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class StringBufferSetLength {
	public static void main(String[] args) {
		StringBuffer sbf = new StringBuffer("Hello World By Java");
		System.out.println("设置长度前:" + sbf);
		sbf.setLength(12);
		System.out.println("设置长度后:" + sbf);
		sbf.setLength(0);
		System.out.println("设置长度后:" + sbf);
	}
}
